import request from '@/utils/request'
import type { AnyObject } from './interface'

/* 轮播图 */
export const reqSwiperList = () => {
  return request.get<any, AnyObject>(
    `/web-config/api/jc/queryAllData?app=web&group=wap&key=ActivityWidget`,
  )
}

/* 三个小导航 */
export const reqNavList = () => {
  return request.get<any, AnyObject>(
    `/m-revision/page/index/queryIndexTabContent?moduleKey=tuijian`,
  )
}

/* 新人必听 */
export const reqListenList = (pageNum: number, pageSize: number) => {
  return request.get<any, AnyObject>(
    `/revision/category/v2/albums?pageNum=${pageNum}&pageSize=${pageSize}&sort=1`,
  )
}

/* 限时免费 今日热点 */
export const reqFreeHotspotList = () => {
  return request.get<any, AnyObject>(`/web-site/main/page`)
}

// 听单某个详情
export const reqListenData = (id: string) => {
  return request.get<any, AnyObject>(
    `m-revision/page/special/querySpecialDetail/${id}`,
  )
}
